package io.github.wanggit.antrpc.console.web.utils;

public abstract class RandomColorUtil {

    public static String randomHexColor() {
        StringBuilder hex =
                new StringBuilder(
                        Integer.toHexString(
                                new Double(Math.floor(Math.random() * 16777216)).intValue()));
        while (hex.length() < 6) {
            hex.insert(0, "0");
        }
        return "#" + hex;
    }
}
